package jp.sf.mapswidgets;

import org.eclipse.swt.SWTException;

final class CheckUtils {
	static void isNotNull(String name, Object value) {
		if (value == null) {
			throw new IllegalArgumentException(name + " is null");
		}
	}
	
	static void isSetted(String name, Object value, String method) {
		if (value == null) {
			throw new SWTException(name + " is null (user " + method + " method to resolve)");
		}
	}
	
	private CheckUtils() {
	}
}
